using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace HDS.Model.Entity.Master
{
    /// <summary>
    /// 分销商配置 
    /// </summary>
    [SugarTable("distributor_config")]
    public class DistributorConfig
    {

        /// <summary>
        /// 分销商
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, ColumnName = "distributor")]
        public string Distributor { get; set; }

        /// <summary>
        /// 分销商分组
        /// </summary>
        [SugarColumn(ColumnName = "distributor_group")]
        public string DistributorGroup { get; set; }

        /// <summary>
        /// 是否卖价 1卖价抽佣模式 0底价结算
        /// </summary>
        [SugarColumn(ColumnName = "is_selling_price")]
        public int IsSellingPrice { get; set; }

        /// <summary>
        /// 分销商抽佣率
        /// </summary>
        [SugarColumn(ColumnName = "commission_rate")]
        public decimal CommissionRate { get; set; } = 0.00M;

        /// <summary>
        /// 上线状态 1在线 0下线
        /// </summary>
        [SugarColumn(ColumnName = "isonline")]
        public bool Isonline { get; set; }

        /// <summary>
        /// 分销商参数配置
        /// </summary>
        [SugarColumn(ColumnName = "config_data")]
        public string ConfigData { get; set; }

        /// <summary>
        /// 分销商说明
        /// </summary>
        [SugarColumn(ColumnName = "remark")]
        public string Remark { get; set; }

        /// <summary>
        /// 增加取消小时数
        /// </summary>
        [SugarColumn(ColumnName = "plus_cancel_hour")]
        public int PlusCancelHour { get; set; } = 48;
    }
}
